package com.tulingdemo;

import com.tulingdemo.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableAsync
public class TulingDemoApplication {

	public static void main(String[] args) {
//		SpringApplication springApplication = new SpringApplication(TulingDemoApplication.class);
//		springApplication.setAllowCircularReferences(Boolean.TRUE);
//		springApplication.run(args);
//		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(TulingDemoApplication.class);
//
//		UserService userService = (UserService) context.getBean("userService");
//		userService.test();

		SpringApplication.run(TulingDemoApplication.class, args);
	}

}
